
package com.joysuch.wwyt.monitoringcenter.bean;

import com.joysuch.wwyt.bp.bean.BpStoreHouseAddBean;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class MajarHazardRealtimeDataMonitoringBean {

    private List<MajorHazardMonitoringBean> dangerList;
    private List<AirMonitoringBean> airList;
    private List<FacilityMonitoringBean> facilityList;
    private Integer facilityTotalNumber;
    private List<CameraMonitoringBean> cameraList;
//    //有毒气体
//    private List<NoxiousGasBean> ngList;
//    //易燃易爆气体
//    private List<InflammableAandExplosiveGasBean> ieList;
    private long monitorPointCount;
    //仓库
    private List<BpStoreHouseAddBean> storeHouseList;

    public MajarHazardRealtimeDataMonitoringBean addDanger(MajorHazardMonitoringBean b) {
        if (dangerList == null) {
            dangerList = new ArrayList<MajorHazardMonitoringBean>(3);
        }
        dangerList.add(b);
        return this;
    }

    public MajarHazardRealtimeDataMonitoringBean addAir(AirMonitoringBean b) {
        if (airList == null) {
            airList = new ArrayList<AirMonitoringBean>(3);
        }
        airList.add(b);
        return this;
    }

    public MajarHazardRealtimeDataMonitoringBean addFacility(FacilityMonitoringBean b) {
        if (facilityList == null) {
            facilityList = new ArrayList<FacilityMonitoringBean>(3);
        }
        facilityList.add(b);
        return this;
    }

    public MajarHazardRealtimeDataMonitoringBean addCamera(CameraMonitoringBean b) {
        if (cameraList == null) {
            cameraList = new ArrayList<CameraMonitoringBean>(3);
        }
        cameraList.add(b);
        return this;
    }

//    public MajarHazardRealtimeDataMonitoringBean addNg(NoxiousGasBean b) {
//        if (ngList == null) {
//            ngList = new ArrayList<NoxiousGasBean>(3);
//        }
//        ngList.add(b);
//        return this;
//    }
//
//    public MajarHazardRealtimeDataMonitoringBean addIe(InflammableAandExplosiveGasBean b) {
//        if (ieList == null) {
//            ieList = new ArrayList<InflammableAandExplosiveGasBean>(3);
//        }
//        ieList.add(b);
//        return this;
//    }
}
